package com.ruoyi.system.domain;

import java.beans.Transient;
import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 电影放映时间对象 ticket_movie_show_time
 * 
 * @author ruoyi
 * @date 2022-01-10
 */
public class TicketMovieShowTime extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 放映厅编号 */
    @Excel(name = "放映厅编号")
    private Long showNumber;

    /** 放映厅名字 */
    @Excel(name = "放映厅名字")
    private String showName;

    /** 总票量 */
    @Excel(name = "总票量")
    private Integer ticketCount;

    /** 已出售票数 */
    @Excel(name = "已出售票数")
    private Integer soldCount;

    /** 剩余票数 */
    @Excel(name = "剩余票数")
    private Integer leftCount;

    /** 放映日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "放映日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date playDate;

    /** 放映时间 */
//    @JsonFormat(pattern = "HH:mm")
    @Excel(name = "放映时间", width = 30 )
    private String playTime;

    /** 电影ID */
    @Excel(name = "电影ID")
    private Long movieId;

    /** 电影名称 */
    @Excel(name = "电影名称")
    private String movieName;



    /** 票价 非数据库字段 */
//    @Excel(name = "票价")
    private BigDecimal price;


    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setShowNumber(Long showNumber) 
    {
        this.showNumber = showNumber;
    }

    public Long getShowNumber() 
    {
        return showNumber;
    }
    public void setShowName(String showName) 
    {
        this.showName = showName;
    }

    public String getShowName() 
    {
        return showName;
    }
    public void setTicketCount(Integer ticketCount) 
    {
        this.ticketCount = ticketCount;
    }

    public Integer getTicketCount() 
    {
        return ticketCount;
    }
    public void setSoldCount(Integer soldCount) 
    {
        this.soldCount = soldCount;
    }

    public Integer getSoldCount() 
    {
        return soldCount;
    }
    public void setLeftCount(Integer leftCount) 
    {
        this.leftCount = leftCount;
    }

    public Integer getLeftCount() 
    {
        return leftCount;
    }
    public void setPlayDate(Date playDate) 
    {
        this.playDate = playDate;
    }

    public Date getPlayDate()
    {
        return playDate;
    }
    public void setPlayTime(String playTime)
    {
        this.playTime = playTime;
    }

    public String getPlayTime()
    {
        return playTime;
    }
    public void setMovieId(Long movieId) 
    {
        this.movieId = movieId;
    }

    public Long getMovieId() 
    {
        return movieId;
    }
    public void setMovieName(String movieName) 
    {
        this.movieName = movieName;
    }

    public String getMovieName() 
    {
        return movieName;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("showNumber", getShowNumber())
            .append("showName", getShowName())
            .append("ticketCount", getTicketCount())
            .append("soldCount", getSoldCount())
            .append("leftCount", getLeftCount())
            .append("playDate", getPlayDate())
            .append("playTime", getPlayTime())
            .append("movieId", getMovieId())
            .append("movieName", getMovieName())
            .append("createTime", getCreateTime())
            .append("price", getPrice())
            .toString();
    }
}
